package base.common;

import base.utlis.CookieHelper;

import com.opensymphony.xwork2.ActionSupport;

public class MenuListAction extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	int loginId;
	String loginName;
	int usertypeId;
	public int getLoginId() {
		return loginId;
	}
	public void setLoginId(int loginId) {
		this.loginId = loginId;
	}
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public int getUsertypeId() {
		return usertypeId;
	}
	public void setUsertypeId(int usertypeId) {
		this.usertypeId = usertypeId;
	}
	
	public String execute()
	{
		CookieHelper helper=new CookieHelper();
		try {
			String loginIdStr=helper.getCookie("loginId");
			String loginName=helper.getCookie("loginName");
			String userTypeStr=helper.getCookie("usertypeId");
			System.out.println(userTypeStr);
			System.out.println(loginName);
			System.out.println(loginIdStr);
			
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return "success";
		
	}
	
}
